import { IPSWFUtilUIAction } from './ipswfutil-uiaction';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSWFUtilUIActionImpl extends PSModelObjectImpl implements IPSWFUtilUIAction {
  get codeName(): string {
    return this.M.codeName;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  get psDEUIActionId(): string {
    return this.M.getPSDEUIActionId;
  }

  getPSDEUIActionId(): string {
    return this.M.getPSDEUIActionId;
  }

  get psWorkflowId(): string {
    return this.M.getPSWorkflowId;
  }

  getPSWorkflowId(): string {
    return this.M.getPSWorkflowId;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }

  get utilType():
    | 'SENDBACK'
    | 'SUPPLYINFO'
    | 'ADDSTEPBEFORE'
    | 'ADDSTEPAFTER'
    | 'TAKEADVICE'
    | 'SENDCOPY'
    | 'REASSIGN'
    | 'USERACTION'
    | 'USERACTION2'
    | 'USERACTION3'
    | 'USERACTION4'
    | 'USERACTION5'
    | 'USERACTION6' {
    return this.M.utilType;
  }

  get cls(): string {
    return 'PSWFUtilUIActionImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'wf.IPSWFUtilUIAction') return true;
    return super.instanceof(cls);
  }
}
